﻿using System;

namespace RaisingStudio.SmallProgram.Library
{
    [SmallProgramType]
    public static class Mouse
    {
        public static void HideCursor()
        {
            // TODO:
        }

        public static void ShowCursor()
        {
            // TODO:
        }

        public static Primitive IsLeftButtonDown
        {
            get
            {
                return Microsoft.Xna.Framework.Input.Mouse.GetState().LeftButton == Microsoft.Xna.Framework.Input.ButtonState.Pressed;
            }
        }

        public static Primitive IsRightButtonDown
        {
            get
            {
                return Microsoft.Xna.Framework.Input.Mouse.GetState().RightButton == Microsoft.Xna.Framework.Input.ButtonState.Pressed;
            }
        }

        public static Primitive MouseX
        {
            get
            {
                // TODO:
                return Microsoft.Xna.Framework.Input.Mouse.GetState().X + GraphicsWindow.Left;
            }
            set
            {
                // TODO:
            }
        }

        public static Primitive MouseY
        {
            get
            {
                // TODO:
                return Microsoft.Xna.Framework.Input.Mouse.GetState().Y + GraphicsWindow.Top;
            }
            set
            {
                // TODO:
            }
        }
    }
}

